package com.wujie.section092;

/**
 * Created by wujieliu on 2017/10/26.
 */
public class MenuTestDrive {
    public static void main(String[] args) {
        MenuComponent pancakeHouseMenu = new Menu("PANCAKE HOUSR MENU", "Breakfast");
        MenuComponent dinerMenu = new Menu("DINER MENU", "Lunch");
        MenuComponent cafeMenu = new Menu("CAFE MENU", "Dinner");
        MenuComponent dessertMenu = new Menu("DESSERT MENU", "Dessert of course ");

        MenuComponent allMenus = new Menu("ALL MENUS", "All menus combined");

        allMenus.add(pancakeHouseMenu);
        allMenus.add(dinerMenu);
        allMenus.add(cafeMenu);
        dinerMenu.add(new MenuItem("Pasta", "fsdfddsfdsf", true, 3.3));
        dinerMenu.add(dessertMenu);
        dessertMenu.add(new MenuItem("Apple ", "APplesddf ", true, 1.59));
        Waitress waitress = new Waitress(allMenus);
        waitress.print();
    }
}
